<?php

namespace Admin\Models\coop;

use Admin\Models\BaseModel;

class XhCoopContact extends BaseModel
{

    /**
     *
     * @var integer
     */
    public $iCCId;

    /**
     *
     * @var integer
     */
    public $iCIId;

    /**
     *
     * @var string
     */
    public $sName;

    /**
     *
     * @var int
     */
    public $sPhoneNum;

    /**
     *
     * @var string
     */
    public $sDuty;

    /**
     *
     * @var int
     */
    public $iUserId;

    /**
     *
     * @var string
     */
    public $sEmail;

    /**
     * @var string
     */
    public $sWeChat;

    /**
     * @var string
     */
    public $sQQ;


    /**
     * @var string
     */
    public $mDesc;

    /**
     * @var integer
     */
    public $bDelete;

    /**
     *
     * @var string
     */
    public $tCreateDate;

    /**
     *
     * @var string
     */
    public $iCreateUserId;

    /**
     *
     * @var string
     */
    public $tLastModifyDate;

    /**
     *
     * @var string
     */
    public $iLastModifyUserId;


    /**
     *
     * @var int
     */
    public $iStaffId;

    /**
     * @var int
     */
    public $iType;

    /**
     * @var int
     */
    public $bDefault;

    /**
     * Initialize method for model.
     */
    public function initialize()
    {
        parent::initialize();
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'XHCoop_Contact';
    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return XhCoopContact[]
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return XhCoopContact
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }


}
